package org.lc.service.system.service;


import org.lc.platform.base.vo.PageVo;
import org.lc.platform.mybatis.crud.service.CrudBaseService;
import org.lc.service.system.dto.SysDictDetailDto;
import org.lc.service.system.dto.SysDictDto;
import org.lc.service.system.entity.SysDict;
import org.lc.service.system.entity.SysDictDetail;

import java.util.List;

public interface SysDictService extends CrudBaseService<SysDictDto, SysDict, SysDict> {

    boolean getCodeExits(String dict);
    boolean handleCache(Boolean cache, String code);

    List<SysDictDetail> getDictEnumListByCode(String code);

    PageVo<SysDictDetail> getDictDetail(String dict, SysDictDetailDto query);

    SysDictDetail getDictDetailOne(String detail);

    boolean createDictDetail(SysDictDetail body);

    boolean updateDictDetail(String id, SysDictDetail body);

    boolean deleteDictDetailOne(String id);

    boolean deleteDetailMany(List<String> ids);
}
